class Service {
  skipPage (dataList, total, pageNo, pageSize) {
    return {
      dataList,
      total,
      pageNo: Number(pageNo),
      pageSize: Number(pageSize),
      pages: Math.ceil(total / pageSize)
    }
  }

  isNull (value) {
    return value === null ||
    value === undefined ||
    value === ''
  }
}

module.exports = Service
